<template>
  <div id="shop">
    <button @click="show = true">aaa</button>
    <!-- <van-button text="显示遮罩层" @click="show = true" /> -->
    <van-overlay :show="show" @click="show = false"> </van-overlay>
  </div>
</template>

<script>
export default {
  data() {
    return {
      show: false
    }
  },
  mounted() {}
}
</script>

<style lang="less" scoped>
#shop {
  height: 100%;
}
</style>
